ComponentOne Bitmap for WPF
Read<T>() Method

C1.WPF.DX.4 Assembly > C1.Util.DX Namespace > DataStream Class > Read Method : Read<T>() Method
The type of the value to be read from the stream.
Reads a single value from the current stream and advances the current position within this stream by the number of bytes read.
Syntax
'Declaration
 
Public Overloads Function Read(Of T As {New, Struct})() As T
public T Read<T>()
where T: new(), struct

Type Parameters

T
The type of the value to be read from the stream.

Return Value

The value that was read.
Exceptions
ExceptionDescription
This stream does not support reading.
Remarks
In order to provide faster read/write, this operation doesn't check stream bound. A client must carefully not read/write above the size of this datastream.
See Also

Reference

DataStream Class
DataStream Members
Overload List